<div class="container">

    <div class="row">
	<ul class="hProductItems clearfix">
	                            <?php 
						         if($_SESSION['lang'] == 'en') {
							?>
						
								<li class="span3 clearfix">
									<div class="thumbnail">
										<a href="<?php print URL . 'digitalcontent/show/' . $digitalContent->digital_content_id; ?>"><img style="height:212px; width:192px;" src="<?php if(!empty($digitalContent->image)) { print URL . 'uploads/' . $digitalContent->image; } else { print URL;?>site/img/212x192.jpg <?php } ?>" alt=""></a>
									</div>
									<div class="thumbSetting">
										<div class="thumbTitle">
												<b>Title : </b><?php print $digitalContent->title_en; ?>
										</div>
										<div class="thumbTitle">
												<b>Keywords : </b><?php print $digitalContent->keywords_en; ?>
										</div>
										<div class="thumbTitle">
												<b>Tags : </b><?php print $digitalContent->tags_en; ?>
										</div>
										<div class="thumbTitle">
												<b>Historical Importance : </b><?php print $digitalContent->historical_importance_en; ?>
										</div>
										<div class="thumbTitle">
												<b>Map Geo Lat: </b><?php print $digitalContent->geo_lat; ?>
										</div>
										<div class="thumbTitle">
												<b>Map Geo Lon : </b><?php print $digitalContent->geo_lon; ?>
										</div>
										<div class="thumbTitle">
												<b>category of : </b><?php print $category->name_en; ?>
										</div>
									</div>
								</li>
									<?php
						            } else {
							?>
						
								<li class="span3 clearfix">
									<div class="thumbnail">
										<a href="<?php print URL . 'digitalcontent/show/' . $digitalContent->digital_content_id; ?>"><img style="height:212px; width:192px;" src="<?php if(!empty($digitalContent->image)) { print URL . 'uploads/' . $digitalContent->image; } else { print URL;?>site/img/212x192.jpg <?php } ?>" alt=""></a>
									</div>
									<div class="thumbSetting">
										<div class="thumbTitle">
												<b>Title : </b><?php print $digitalContent->title_ar; ?>
										</div>
										<div class="thumbTitle">
												<b>Keywords : </b><?php print $digitalContent->keywords_ar; ?>
										</div>
										<div class="thumbTitle">
												<b>Tags : </b><?php print $digitalContent->tags_ar; ?>
										</div>
										<div class="thumbTitle">
												<b>Historical Importance : </b><?php print $digitalContent->digital_content_id; ?>
										</div>
										<div class="thumbTitle">
												<b>Map Geo Lat: </b><?php print $digitalContent->geo_lat; ?>
										</div>
										<div class="thumbTitle">
												<b>Map Geo Lon : </b><?php print $digitalContent->geo_lon; ?>
										</div>
										<div class="thumbTitle">
												<b>category of : </b><?php print $category->name_ar; ?>
										</div>
									</div>
								</li>
								<?php
								}
						?>
											
</div><!--end row-->
                     
			<label>Comments</label>
			 <table class="table table-bordered table-hover table-striped">
						 <table class="table table-bordered table-hover table-striped">
              <?php
                 foreach( $showcomments as $showcomment )  {
				 ?>
				    
                     
						<tr>
				
                    <td><?php if (isset($showcomment->user_id)) echo htmlspecialchars($showcomment->user_id, ENT_QUOTES, 'UTF-8'); ?></td>
						<td><?php if (isset($showcomment->digital_content_id)) echo htmlspecialchars($showcomment->digital_content_id, ENT_QUOTES, 'UTF-8'); ?></td>
		    		   <td><?php if (isset($showcomment->comment)) echo htmlspecialchars($showcomment->comment, ENT_QUOTES, 'UTF-8'); ?></td>
						</tr>
				
			<?php
			}
			?>
			</table>
                       <form action="../../home/addComment" method="post" enctype="multipart/form-data" >
                        <label>Add a Comment</label>
                        <textarea class="form-control" rows="3"
					    type="text" name="comment" class="form-control"	value=""							
					    ></textarea>								                      
                        <input type="hidden" name="digital_content_id" value="<?php echo htmlspecialchars($digitalContent->digital_content_id, ENT_QUOTES, 'UTF-8'); ?>" />
	                    <input type="hidden" name="user_id" value="<?php echo $_SESSION['user']['user_id']?>" />
	 					<input type="hidden" name="status" value="pending" /> 							 
						<div class="form-group">
				         <button name="submit_comment" value="submit" type="submit" class="btn btn-default">save comment</button>
			            </div>						
						</form>						
</div>

